<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let num, uname;
        // num = 20, uname = '张三';
        // console.log(num);
        // console.log(uname);

        // let uname = prompt('请输入你的名字');
        // document.write(uname);

        // let temp, num1 = 20, num2 = 10;
        // temp = num1;
        // num1 = num2;
        // num2 = temp;
        // console.log(num2);//应该为20

        let uname = prompt('请输入你的名字'), age = prompt('请输入你的年龄'), gender = prompt('请输入你的性别');
        document.write('你的名字是：' + uname + '，年龄是：' + age + ',性别是：' + gender);

    </script>
</body>

</html>